#define _CRT_SECURE_NO_WARNINGS

#include"vector.h"

template<class Contain>
void Print(const Contain& con)
{
	for (auto& e : con)
	{
		cout << e << ' ';
	}
	cout << endl;
}
void test01()
{
	bear::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);
	//for (size_t i = 0; i < v1.size(); i++)
	//{
	//	cout << v1[i] << ' ';
	//}
	//cout << endl;
	Print(v1);

	bear::vector<int> v2(10,1);
	Print(v2);

	bear::vector<int> v3(v1.begin() + 1, v1.end());
	Print(v3);

	bear::vector<int> v4 = v1;
	Print(v4);

	bear::vector<int> v5;
	v5 = v1;
	Print(v5);

	v1.insert(v1.begin()+2, 10);
	Print(v1);
}
int main()
{
	test01();
	return 0;
}